<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>麦咚网购</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/cart.css">
</head>

<body>
    <!-- 头部 -->
    <header id="header" class="mui-bar mui-bar-nav">
        <h1 class="mui-title">商品详情</h1>
        <a class="fa h_left fa-arrow-left" href="./searchList.html"></a>
        <a class="fa h_right fa-home" href="./searchList.html"></a>
    </header>
    <!-- 内容 -->
    <div class="view">
        <div class="content">
            <ul id="lt_goods_list" class="mui-table-view"></ul>
        </div>
    </div>
    <!-- 订单总额 -->
    <div class="order">
        <div class="total_order">订单总额:￥
            <span class="total_price">0.00</span>
        </div>
        <div class="order_create">生成订单</div>
    </div>
    <!-- 底部 -->
    <div class="footer">
        <a href="./index.html" class="active">
            <div class="fa fa-home"></div>
            <p>首页</p>
        </a>
        <a href="./category.html">
            <div class="fa fa-bars"></div>
            <p>分类</p>
        </a>
        <a href="./cart.html">
            <div class="fa fa-cart-plus"></div>
            <p>购物车</p>
        </a>
        <a href="javascript:;">
            <div class="fa fa-user"></div>
            <p>会员中心</p>
        </a>
    </div>
</body>
<script src="./assets/zepto/zepto.js"></script>
<script src="./assets/mui/js/mui.js"></script>
<script src="./js/common.js"></script>
<script src="./js/cart.js"></script>
<script src="./assets/arttemplate/template-web.js"></script>
<!-- 模板 -->
<script type="text/html" id="bbtemp">
    {{ each arr value index}}
    <li data-obj='{{value}}' class=" lt_good  mui-table-view-cell mui-transitioning">
        <div class="mui-slider-right mui-disabled">
            <a class=" item_edit mui-btn mui-btn-blue fa fa-edit " style="transform: translate(0px, 0px);"></a>
            <a class=" item_delete  mui-btn mui-btn-red  fa fa-trash " style="transform: translate(-60px, 0px);"></a>
        </div>
        <div class="mui-slider-handle" style="transform: translate(0px, 0px);">
            <div class="mui-table-cell">
                <!-- 内容 -->
                <div class="goods_item">
                    <div class="item_left">
                        <img src="{{value.pic[0].picAddr}}" alt="">
                        <input type="checkbox" class="goods_chk">
                    </div>
                    <div class="item_right">
                        <div class="goods_name">{{value.proName}}</div>
                        <div class="goods_price">
                            <span class="new_price">￥{{value.price}}</span>
                            <del>￥{{value.oldPrice}}</del>
                            <span class="goods_num">×{{value.num}}双</span>
                        </div>
                        <div class="goods_size">
                            鞋码:{{value.size}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </li>
    {{/each}}
</script>
<!-- 模板 -->
<!-- 编辑框的模板 -->
<script id="editTemp" type="text/html">
    <div>
        <div class="goods_size">
            尺码: {{each productSize value}} {{if value==size}}
            <span class="size_btn active">{{value}}</span> {{/if}} {{if value!=size}}
            <span class="size_btn ">{{value}}</span> {{/if}} {{/each}}

        </div>
        <!-- 商品数量 -->
        <div class="goods_num">
            数量:
            <!-- productNum- 库存  num- 购买的数量 -->
            <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1' data-numbox-max='{{productNum}}'>
                <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                <!-- 购买的数量  -->
                <input class=" num_val mui-numbox-input" value="{{num}}" type="number" />
                <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
            </div>
        </div>
    </div>
</script>
<!-- 编辑框的模板 -->

</html>